package com.cgsrp.cgsrp_community.dao;

import com.cgsrp.cgsrp_community.domain.BlogFollow;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BlogFollowMapper {
    int deleteByPrimaryKey(@Param("blogerId") Integer blogerId, @Param("userId") Integer userId);

    int insert(BlogFollow record);

    int insertSelective(BlogFollow record);

    BlogFollow selectByPrimaryKey(@Param("blogerId") Integer blogerId, @Param("userId") Integer userId);

    int updateByPrimaryKeySelective(BlogFollow record);

    int updateByPrimaryKey(BlogFollow record);

    List<Integer> findFollowByUserId(int userId);

    List<BlogFollow> findByUserId(int userId);
}
